package jehc.djshi.oauth.service;

import jehc.djshi.oauth.model.OauthAccountTenant;
import jehc.djshi.oauth.param.OauthAccountTenantParam;
import java.util.List;
import java.util.Map;
/**
 * @Desc 账号租户关系
 * @Author 邓纯杰
 * @CreateTime 2012-12-12 12:12:12
 */
public interface OauthAccountTenantService {

    /**
     * 查询集合
     * @param oauthAccountTenantParam
     * @return
     */
    List<OauthAccountTenant> getOauthAccountTenantList(OauthAccountTenantParam oauthAccountTenantParam);

    /**
     * 新增
     * @param oauthAccountTenantList
     * @param account
     * @return
     */
    int addOauthAccountTenant(List<OauthAccountTenant> oauthAccountTenantList,String account);

    /**
     * 根据账号删除
     * @param account
     * @return
     */
    int delOauthAccountTenantByAccount(String account);

    /**
     * 删除
     * @param condition
     * @return
     */
    int delOauthAccountTenant(Map<String,Object> condition);

    /**
     * 统计绑定租户
     * @param oauthAccountTenantParam
     * @return
     */
    Integer getOauthAccountTenantCount(OauthAccountTenantParam oauthAccountTenantParam);

    /**
     * 根据账号，类型删除
     * @param oauthAccountTenantParam
     * @return
     */
    int delOauthAccountTenantByAccountAndType(OauthAccountTenantParam oauthAccountTenantParam);

    /**
     * 根据子系统删除
     * @param oauthAccountTenantParam
     * @return
     */
    int delOauthAccountTenantBySysModeId(OauthAccountTenantParam oauthAccountTenantParam);

}
